package com.zheng.shop.dao.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 快递类型表
 * </p>
 *
 * @author likun
 * @since 2017-12-29
 */
@TableName("shop_delivery_type")
public class ShopDeliveryType extends Model<ShopDeliveryType> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 创建时间
     */
	private Date ctime;
    /**
     * 最后修改时间
     */
	private Date mtime;
    /**
     * 续重量
     */
	@TableField("continue_weight")
	private Double continueWeight;
    /**
     * 续重价格
     */
	@TableField("continue_weight_price")
	private BigDecimal continueWeightPrice;
    /**
     * 快递方式
     */
	@TableField("delivery_type")
	private Integer deliveryType;
    /**
     * 描述
     */
	private String description;
    /**
     * 初始重量
     */
	@TableField("first_weight")
	private Double firstWeight;
    /**
     * 初始价格
     */
	@TableField("first_weight_price")
	private BigDecimal firstWeightPrice;
    /**
     * 快递类型名称
     */
	private String name;
    /**
     * 排序
     */
	private Integer sort;
    /**
     * 默认快递公司id
     */
	@TableField("default_delivery_corp_id")
	private Long defaultDeliveryCorpId;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getCtime() {
		return ctime;
	}

	public void setCtime(Date ctime) {
		this.ctime = ctime;
	}

	public Date getMtime() {
		return mtime;
	}

	public void setMtime(Date mtime) {
		this.mtime = mtime;
	}

	public Double getContinueWeight() {
		return continueWeight;
	}

	public void setContinueWeight(Double continueWeight) {
		this.continueWeight = continueWeight;
	}

	public BigDecimal getContinueWeightPrice() {
		return continueWeightPrice;
	}

	public void setContinueWeightPrice(BigDecimal continueWeightPrice) {
		this.continueWeightPrice = continueWeightPrice;
	}

	public Integer getDeliveryType() {
		return deliveryType;
	}

	public void setDeliveryType(Integer deliveryType) {
		this.deliveryType = deliveryType;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Double getFirstWeight() {
		return firstWeight;
	}

	public void setFirstWeight(Double firstWeight) {
		this.firstWeight = firstWeight;
	}

	public BigDecimal getFirstWeightPrice() {
		return firstWeightPrice;
	}

	public void setFirstWeightPrice(BigDecimal firstWeightPrice) {
		this.firstWeightPrice = firstWeightPrice;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Long getDefaultDeliveryCorpId() {
		return defaultDeliveryCorpId;
	}

	public void setDefaultDeliveryCorpId(Long defaultDeliveryCorpId) {
		this.defaultDeliveryCorpId = defaultDeliveryCorpId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ShopDeliveryType{" +
			"id=" + id +
			", ctime=" + ctime +
			", mtime=" + mtime +
			", continueWeight=" + continueWeight +
			", continueWeightPrice=" + continueWeightPrice +
			", deliveryType=" + deliveryType +
			", description=" + description +
			", firstWeight=" + firstWeight +
			", firstWeightPrice=" + firstWeightPrice +
			", name=" + name +
			", sort=" + sort +
			", defaultDeliveryCorpId=" + defaultDeliveryCorpId +
			"}";
	}
}
